<script>
export default {
    onLaunch(options) {
        console.log('onLaunch', options)
        if (options.query && options.query.user_id) {
            this.$store.commit('setUserId', options.query.user_id)
        } else if (options.query && options.query.user_id === '') {
            this.$store.commit('logout')
        }
    },
    onShow: function() {
        // console.log('App Show')
    },
    onHide: function() {
        // console.log('App Hide')
    }
}
</script>

<style lang="scss">
@import '/globe/index.scss';

page {
    --theme: #77c25a;
    --background: linear-gradient(180deg, #77c25a 0%, #77c25a 100%);
}

.ios-btm {
    height: 20rpx;
    height: constant(safe-area-inset-bottom);
    /* 兼容 iOS < 11.2 */
    height: env(safe-area-inset-bottom);
    /* 兼容 iOS >= 11.2 */
}
</style>
